<div class="main-content">
    <!--<div class="content-banner">
        <img src="<?=$this->applicationUrl()?>/public/images/visu-best-price.jpg" width="710" height="239" alt="" /><span class="best-price"><img src="images/best-price.png" width="111" height="129" alt="Best Price" /></span>
    </div>-->
	<h3>Sản phẩm</h3>
    <div class="inner-content">
    	<?php
			foreach($this->productList as $index=> $product)  {				
				if ($index % 4 == 0) {
		?>
        <ul class="best-saler">
        <?php
				}
		?>		
            <li>       				   
                <a href="<?php echo $this->baseUrl('/site/product-detail/product_id/'. $product['product_id']); ?>">
                <?php
					if ($product['main_image'] == null || !file_exists($this->applicationUrl() . '/public/data/products/' . $product['main_image'])) {
				?>
					<img src="<?=$this->applicationUrl()?>/public/images/nothumb.jpg" width="152" height="146" alt="" />
				<?php
					} else {
				?>
					<img src="<?=$this->applicationUrl()?>/public/data/products/<?php echo $product['main_image']?>" width="152" height="146" alt="" />
				<?php
					}
				?>	
				</a>
				<span class="name"><?php echo $product['name']?></span>
                <span class="new"><img src="images/new.gif" width="16" height="7" alt="" /></span>
				<span class="price"><?php echo $product['price']?></span>
            </li>      
		<?php
				if (($index+1) % 4 == 0) {
		?>     
			</ul>
		<?php
				}
			}
		?>                      
    </div>
</div>
